<link rel="stylesheet" type="text/css" href="<?php echo $css_url; ?>header.css" />

<header>
	<div class="header-real clearfix">
		<div class="transparent_block transparent"></div>
		<div class="content">
			<h1 class="fleft">
				<a href="<?php echo url('/'); ?>">SiteName</a>
			</h1>
			
			<nav class="fleft">
				<ul id="header-browser">
					<li class="fleft" id="dropdown">
						<a id="index" href="<?php echo url('default/index'); ?>">主页</a>
					</li>
					<li class="separator fleft">/</li>
					
					<li class="fleft">
						<a id="album" href="<?php echo url('album/index'); ?>">相册</a>
					</li>
					<li class="separator fleft">/</li>
					
					<li class="fleft">
						<a id="diary" href="<?php echo url('diary/index'); ?>">日记</a>
					</li>
					<li class="separator fleft">/</li>
					
					<li class="fleft">
						<a id="about" href="#">About</a>
					</li>
				</ul>
				<script>
					$('#header-browser #<?php echo $controller ?>').addClass('active');
				</script>
			</nav>
			
			<div class="links-pane fright">
				<!-- <ul class="social-icons">
					<li class="twitter"><a rel="external" href="#" target="_blank">Twitter</a></li>
					<li class="facebook"><a rel="external" href="#" target="_blank">Facebook</a></li>
					<li class="vimeo"><a rel="external" href="#" target="_blank">Vimeo</a></li>
					<li class="youtube"><a rel="external" href="#" target="_blank">Youtube</a></li>
					<li class="google-plus"><a rel="external" href="#" target="_blank">Google-plus</a></li>
					<li class="whosay"><a rel="external" href="#" target="_blank">Whosay</a></li>
					<li class="pinterest"><a rel="external" href="#" target="_blank">Pinterest</a></li>
					<li class="instagram"><a rel="external" href="#" target="_blank">Instagram</a></li>
					<li class="feed"><a href="#">Feed</a></li>
				</ul> -->
				
				<ul class="util-links">
					<?php if(is_null($currUser)): ?>
						<li class="fleft"><a href="<?php echo url('user/login'); ?>">登录</a></li>
						<li class="fleft"><a href="<?php echo url('user/register'); ?>">注册</a></li>
					<?php else: ?>
						<li class="fleft"><a href="<?php echo url('user/profile'); ?>">个人中心</a></li>
						<li class="fleft"><a href="<?php echo url('user/logout'); ?>">退出</a></li>
					<?php endif; ?>
				</ul>
			</div>
			
			<div class="clear"></div>
		</div>
	</div>
</header>